@using Didsoft.Mvc.Helpers
@model SIOGDE.AccesoDatos.Entidades.Grado
@{
   ViewBag.Title = "Grado";
 }
<link href="~/Content/DataForm.css" rel="stylesheet"/>
@using (Html.BeginForm("DataForm","Grado", FormMethod.Post, new {@class="box common", @id="myDataForm"})) {
     <div class="header">Formulario : Grado</div>
     <fieldset class="boxBody">
         @Html.ValidationMessage("DataFormError")
            <div class="editor-label">
                @Html.LabelFor(model => model.Fuerza)
            </div>
            <div class="editor-field">
                @Html.AutocompleteFor(model => model.FuerzaId_FK, "Fuerza.Nombre", Url.Action("SearchByFilter","Fuerza"))
            </div>
         @Html.HiddenFor(model => model.Guid)
         <div class="editor-label">
             @Html.LabelFor(model => model.Codigo)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Codigo)
             @Html.ValidationMessageFor(model => model.Codigo)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.Nombre)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Nombre)
             @Html.ValidationMessageFor(model => model.Nombre)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.Descripcion)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.Descripcion)
             @Html.ValidationMessageFor(model => model.Descripcion)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.NivelJerarquico)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.NivelJerarquico)
             @Html.ValidationMessageFor(model => model.NivelJerarquico)
         </div>
         <div class="editor-label">
             @Html.LabelFor(model => model.NumAniosCambiaDestino)
         </div>
         <div class="editor-field">
             @Html.EditorFor(model => model.NumAniosCambiaDestino)
             @Html.ValidationMessageFor(model => model.NumAniosCambiaDestino)
         </div>
</fieldset>
<footer>
<input type="submit" class="btnCommon" value="Guardar Datos"/>
<input type="button" class="btnCancel" value="Cancelar y Regresar" onclick="history.go(-1);" />
</footer>
}
@section Scripts{@Scripts.Render("~/bundles/jqueryval")}

